<script setup lang="ts">
import p from '~/assets/images/home/home-1.jpg'
</script>
<template>
  <div class="home">
    <!--    顶部banner-->
    <div class="home-top-banner">
      <div class="banner-item">
        <div class="banner-container">
          <BannerMedia :url="p"/>
        </div>
        <h1 class="title">执象广告</h1>
        <h1 class="intro">一站式互联网营销服务</h1>
      </div>
    </div>
    <div class="home-achievement">
      <div class="achievement-top">
        <div class="top-item">
          <div class="label">成立于</div>
          <div>
            <span class="count">2015</span>
            <span class="unit">年</span>
          </div>
        </div>
        <div class="top-item">
          <div class="label">公司员工</div>
          <div>
            <span class="count">1000</span>
            <span class="unit">+</span>
          </div>
        </div>
        <div class="top-item">
          <div class="label">年营销活动总量</div>
          <div>
            <span class="count">1000</span>
            <span class="unit">+</span>
          </div>
        </div>
        <div class="top-item">
          <div class="label">年营销活动总金额</div>
          <div>
            <span class="count">1000</span>
            <span class="unit">万+</span>
          </div>
        </div>
      </div>
      <div class="achievement-bottom">
        <div class="bottom-left">
          <img src="~/assets/logo-black.png" alt="">
        </div>
        <div class="bottom-right">执象广告（北京）有限公司成立于2015年是一家以创新为核心的互联网营销推广机构，通过大数据的应用和社会化媒体传播渠道
          的结合，为各行业客户提供基于数字化营销的实效广告服务。执象广告（北京）有限公司成立于2015年是一家以创新为核心的互
          联网营销推广机构，通过大数据的应用和社会化媒体传播渠道的结合，为各行业客户提供基于数字化营销的实效广告服务。
        </div>
      </div>
    </div>
    <div class="home-server">
      <div class="server-left">
        <div class="desc">我们的服务<br/>
          让营销变得简单
        </div>
        <NuxtLink class="more" to="/">
          <ViewMore/>
        </NuxtLink>
      </div>
      <div class="server-list">
        <div class="server-list-item" v-for="i in 8">
          <div class="top">
            <img src="~/assets/images/home/niu.png" alt="">
          </div>
          <div class="bottom">
            <div class="c-name">磁力金牛</div>
            <div class="c-intro">
              <p>哈哈哈哈哈</p>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="home-honor">
      <div class="home-honor-top">
        <div class="title">我们的荣誉</div>
        <div class="intro">以技术为先，打造领先行业的技术优势</div>
      </div>
      <div class="home-honor-list">
        <Swiper
            :slides-per-view="5"
            :modules="[SwiperAutoplay,SwiperEffectCoverflow]"
            effect="coverflow"
            :centered-slides="true"
            :coverflow-effect="{
          rotate: 1,
            stretch: 0,
            depth: 200,
            modifier: 1,
            scale: 1,
            slideShadows: false
        }"
        >
          <SwiperSlide v-for="i in 10">
            <div class="list-item">
              <img src="" alt="">
            </div>
          </SwiperSlide>
        </Swiper>

      </div>

    </div>
    <div class="home-strengths">
      <div class="top">
        <div class="title">我们的优势</div>
        <div class="desc">
          大数据驱动之下，我们秉承用户至上的理念，坚持系统化技术服务与支持 <br/>越来越多客户通过我们的定制方案高效落地，提高了产品营销效率，提升了市场竞争力
        </div>
      </div>
      <div class="list">
        <div class="item" v-for="i in 4">
          <div class="icon">
            <img src="" alt="">
          </div>
          <div class="title">大数据营销</div>
          <div class="desc">独创的大数据系统，从海量数据
            中获取价值，针对客户需求打造
            敏捷、智慧、融合的营销解决方
            案，实现精准营销。
          </div>
        </div>
      </div>
    </div>
    <NuxtLink to="/" class="home-news-nav">
      <span>新闻中心</span>
      <img src="~/assets/icons/back.png" alt="">
    </NuxtLink>
    <div class="home-custom">
      <img class="logo" src="~/assets/logo-black.png" alt="">
      <div class="mock-border"></div>
      <div class="selector">全球3000+客户的信赖选择</div>
      <div class="list">
        <img src="" alt="" v-for="i in 8">
      </div>
    </div>
    <div class="home-concat">
      <div class="left">
        <div class="title">联系我们</div>
        <div class="intro">素未谋面，却能心照不宣</div>
        <div class="list" v-for="i in 3">
          <div class="item">
            <div class="icon">
              <img src="~/assets/icons/home-local-light.png" alt="">
            </div>
            <div class="address">
              <div class="name">北京</div>
              <div class="detail">北京市朝阳区姚家园路105号观湖国际5层</div>
            </div>
          </div>
        </div>
      </div>
      <div class="right">
        <div class="city-item">
          <div class="address-local">
            <span class="circle"></span>
            <div class="txt">北京</div>
          </div>
        </div>
        <div class="city-item shanghai">
          <div class="address-local ">
            <span class="circle"></span>
            <div class="txt">上海</div>
          </div>

        </div>
        <div class="city-item hangzhou">
          <div class="address-local ">
            <span class="circle"></span>
            <div class="txt">杭州</div>
          </div>

        </div>

      </div>
    </div>
  </div>
</template>
<style lang="scss" scoped>
.home {
  //font-family: Source Han Sans CN;

  .home-top-banner {
    .banner-item {
      width: 24rem;
      height: 13.5rem;
      position: relative;
      color: #FFFFFF;
      padding-left: 1.9rem;
      padding-top: 0.1px;

      .banner-container {
        z-index: -1;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
      }

      .title {
        margin-top: 5.13rem;
        font-size: 1.75rem;
        font-weight: bold;
        letter-spacing: 0.09rem;
      }

      .intro {
        margin-top: 0.48rem;
        letter-spacing: 0.035rem;
        font-size: 0.6rem;
        font-weight: 400;
        line-height: 0.6rem;
        text-shadow: 0 0 1rem rgba(40, 40, 40, 0.53);
      }
    }
  }

  .home-achievement {
    width: 24rem;
    height: 10rem;
    background: url('~/assets/images/home/home-light-1.jpg') no-repeat;
    background-size: 24rem 10rem;
    padding-left: 2.59rem;
    padding-top: 1.54rem;

    .achievement-top {
      display: flex;

      .top-item {
        width: 3.25rem;
        margin-right: 1.53rem;

        &:last-child {
          margin-right: 0;
        }

        &:nth-child(3) {
          margin-right: 2.53rem;
        }

        .label {
          font-size: 0.38rem;
          font-weight: 500;
          color: #333333;
          padding: 0.46rem 0;
          margin-bottom: 0.63rem;
          border-bottom: 0.01rem solid #333;
        }

        .count {
          font-size: 0.9rem;
          font-weight: bold;
        }

        .unit {
          font-size: 0.45rem;
        }
      }
    }

    .achievement-bottom {
      margin-top: 1.54rem;
      display: flex;
      align-items: center;

      .bottom-left {
        width: 4.69rem;

        img {
          width: 3.33rem;
          height: 1.01rem;
        }
      }

      .bottom-right {
        font-family: Source Han Sans CN, sans-serif;
        width: 14.06rem;
        height: 1.45rem;
        font-size: 0.248rem;
        font-weight: 500;
        color: #333333;
        line-height: 0.5rem;
        overflow-y: auto;

        &::-webkit-scrollbar {
          display: none;
        }
      }
    }
  }

  .home-server {
    width: 24rem;
    height: 11.03rem;
    background: url('~/assets/images/home/home-deep-1.jpg') no-repeat;
    background-size: 24rem 11.03rem;
    display: flex;
    padding: 1.53rem 1.7rem 0 1.63rem;
    justify-content: space-between;

    .server-left {
      .desc {
        font-size: 0.6rem;
        font-family: SourceHanSansCN;
        font-weight: bold;
        color: #FFFFFF;
        margin-top: 1.38rem;
        line-height: 0.9rem;
      }

      .more {
        display: inline-block;
        margin-top: 2.3rem;
      }
    }

    .server-list {
      display: flex;
      flex-wrap: wrap;
      width: 15.16rem;
      height: 8.02rem;
      position: relative;

      &:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 0.01rem;
        height: 100%;
        background: rgba(255, 255, 255, .4);
      }

      &:after {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 0.01rem;
        background: rgba(255, 255, 255, .4);
      }

      .server-list-item {
        width: 3.79rem;
        height: 4.01rem;
        padding: .48rem .35rem .4rem;
        border-right: 1px solid rgba(255, 255, 255, .4);
        border-bottom: 1px solid rgba(255, 255, 255, .4);
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        &:hover {
          cursor: pointer;
          background: #41BFFF;;

          .bottom {
            .c-intro {
              margin-top: 0.14rem;
              grid-template-rows: 1fr;
            }
          }

        }

        .top {
          img {
            width: 0.8rem;
            object-fit: scale-down;
          }
        }

        .bottom {
          color: #fff;

          .c-name {
            font-size: 0.3rem;
            font-weight: 400;
          }

          .c-intro {
            transition: .4s;
            display: grid;
            grid-template-rows: 0fr;
            overflow: hidden;

            p {
              min-height: 0;
              font-size: 0.23rem;
            }
          }
        }
      }
    }

  }

  &-honor {
    width: 24rem;
    height: 12.85rem;
    padding: 1.04rem 1.66rem;
    background: url(~/assets/images/home/home-light-2.jpg) no-repeat;
    background-size: 24rem 12.85rem;

    &-top {
      .title {
        font-size: 0.6rem;
        font-weight: bold;
        color: #333333;
      }

      .intro {
        margin-top: 0.1rem;
        font-size: 0.3rem;
        font-weight: 400;
        color: #333333;
      }
    }

    &-list {
      margin-top: 1rem;

      .list-item {
        &:after {
          content: attr(data-number);
          color: #000;
        }

        img {
          display: block;
          background: #ccc;
          width: 5.21rem;
          height: 7.3rem;
        }
      }
    }
  }

  &-strengths {
    width: 24rem;
    height: 12.8rem;

    .top {
      height: 7.54rem;
      background: url(~/assets/images/home/home-deep-2.jpg) no-repeat;
      background-size: 24rem 7.54rem;
      padding-top: 1.02rem;
      color: #fff;
      text-align: center;

      .title {
        font-size: 0.6rem;
        font-weight: bold;
      }

      .desc {
        margin-top: 0.8rem;
        font-size: 0.23rem;
        font-weight: 400;
        line-height: 0.6rem;
      }
    }

    .list {
      margin-top: -2.9rem;
      display: flex;
      margin-left: 1.68rem;

      .item {
        color: #fff;
        width: 5.2rem;
        height: 7.29rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        padding-bottom: 1.5rem;
        background: #0a3449;

        &:hover {
          transition: all 0.5s;
          background: #41BFFF;

          .title {
            border-bottom: 2px solid #fff;
          }

          .desc {
            height: 2rem;
            overflow: auto;
            transition: all 0.5s;

            &::-webkit-scrollbar {
              display: none;
            }
          }
        }

        .icon {
          img {
            width: 1.11rem;
            height: 1.11rem;
          }
        }

        .title {
          font-size: 0.23rem;
          margin-top: 0.4rem;
          border-bottom: 2px solid transparent;
          padding-bottom: 0.15rem;
        }

        .desc {
          transition: all 0.5s;

          width: 2.8rem;
          height: 0;
          overflow: hidden;
          font-size: 0.2rem;
          line-height: 0.5rem;
          text-align: center;
          margin-top: 0.5rem;
        }
      }
    }
  }

  &-news-nav {
    width: 24rem;
    height: 3.75rem;
    background: url(~/assets/images/home/home-deep-3.jpg) no-repeat;
    background-size: 24rem 3.75rem;
    display: flex;
    align-items: center;
    padding: 0 1.78rem;
    justify-content: space-between;

    span {
      color: #fff;
      font-size: 0.45rem;
    }

    img {
      display: block;
      width: 0.2rem;
      height: 0.44rem;
    }

  }

  .home-custom {
    padding-top: 1.56rem;
    height: 12.04rem;
    background: url(~/assets/images/home/home-light-3.jpg) no-repeat;
    background-size: 24rem 12.04rem;

    .logo {
      width: 3.91rem;
      height: 1.19rem;
      display: block;
      margin: auto;
    }

    .mock-border {
      width: 0.75rem;
      height: 0.06rem;
      background: #041726;
      margin: 0.81rem auto 0.59rem auto;
    }

    .selector {
      font-size: 0.3rem;
      text-align: center;
    }

    .list {
      padding-left: 4.1rem;
      padding-right: 4.76rem;
      margin-top: 1.49rem;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;

      img {
        width: 3.21rem;
        height: 1.41rem;
        object-fit: scale-down;
        margin-bottom: 0.99rem;
      }
    }
  }

  .home-concat {
    height: 11.53rem;
    background: url(~/assets/images/home/home-contact.jpg) no-repeat;
    background-size: 24rem 11.53rem;
    display: flex;
    padding-left: 2.1rem;
    padding-top: 1.29rem;

    .left {
      color: #fff;

      .title {
        font-size: 0.6rem;
        margin-bottom: 0.23rem;
      }

      .intro {
        font-size: 0.38rem;
      }

      .list {
        .item {
          display: flex;
          margin-top: 1.73rem;

          &:nth-child(1) {
            margin-top: 1.27rem;
          }

          .icon {
            width: 0.88rem;
            height: 0.88rem;
            border-radius: 100%;
            background: #3a8ebf;
            margin-right: 0.31rem;

            img {
              width: 0.88rem;
              height: 0.88rem;
            }
          }

          .address {
            .name {
              font-size: 0.3rem;
              margin-bottom: 0.12rem;
            }

            .detail {
              font-size: 0.33rem;
            }
          }
        }

      }
    }

    .right {
      position: relative;

      .city-item {
        position: absolute;
        top: 1.9rem;
        left: 10rem;
        &.shanghai{
          top: 7.5rem;
          left: 9rem;
          .address-local{
            .txt {
              color: #fff;
              font-size: 0.38rem;
              position: absolute;
              width: 1rem;
              top: 0.1rem;
              left: -0.9rem;
            }
            &::after {
              position: absolute;
              content: '';
              width: 0.02rem;
              height: 2.19rem;
              background: #FFFFFF;
              left: 50%;
              top: -30%;
              transform: translate(-50%, -50%);
            }
          }
        }
        &.hangzhou{
          top: 7.5rem;
          left: 10rem;
          .address-local{
            &::after {
              position: absolute;
              content: '';
              width: 0.02rem;
              height: 2.19rem;
              background: #FFFFFF;
              left: 50%;
              top: -30%;
              transform: translate(-50%, -50%);
            }
          }
        }

        .address-local {
          position: relative;
          height: 2.4rem;

          &::after {
            position: absolute;
            content: '';
            width: 0.02rem;
            height: 2.19rem;
            background: #FFFFFF;
            left: 50%;
            top: 60%;
            transform: translate(-50%, -50%);
          }

          .txt {
            color: #fff;
            font-size: 0.38rem;
            position: absolute;
            width: 1rem;
            top: 0.1rem;
            left: 0.8rem;
          }

          .circle {
            display: inline-block;
            width: 0.69rem;
            height: 0.69rem;
            position: relative;


            &::before {
              position: absolute;
              display: inline-block;
              content: '';
              width: 0.26rem;
              height: 0.26rem;
              background: rgba(255, 255, 255, 1);
              border-radius: 1rem;
              left: 50%;
              top: 50%;
              transform: translate(-50%, -50%);
            }

            &::after {
              position: absolute;
              display: inline-block;
              content: '';
              width: 0.69rem;
              height: 0.69rem;
              background: rgba(255, 255, 255, .3);
              border-radius: 1rem;
              left: 50%;
              top: 50%;
              transform: translate(-50%, -50%);
            }
          }
        }

      }

    }
  }

}
</style>
